<template>
	<view class="content">
		<u-navbar back-text="" 
		:leftIconColor="tksetting.titlecolor" 
		:bgColor="tksetting.color" 
		:titleStyle="{color:tksetting.titlecolor}" 
		:title="info.title"  
		:autoBack="true"  
		:placeholder="true">
		</u-navbar>
		<view class="">
				<view style="padding: 20rpx;">
					<u-parse :content="info.content"></u-parse>
				</view>
		</view>
	</view>
</template>
<script>
import {toast, clearStorageSync, setStorageSync, getStorageSync, useRouter} from '@/utils/utils.js'
import { mapState } from 'vuex';
export default {
	data() {
		return {
			id: '',
			info:'',
		}
	},
	onLoad(op) {
		
		this.id  = op.id
		this.init();
	},
	onShow() {
	},
	onReady() {
	},
	computed: {
		...mapState(['tksetting'])
	},
	methods: {
		async init(){

			this.$api.danye({id:this.id}).then(res=>{
				
				if(res.code==0){
					
					this.info=res.data
					
				}else{
					uni.navigateBack();
				}
				
			})
		}
	}
}
</script>
<style lang="scss" scoped>
	.content{}
</style>